package com.proxy.dynamic_proxy_jdk;


/**
 * 项目名称: java_algorithm
 * @ClassName DynamicProxyTest
 * @Description
 * @Author huipanxing huipanxing@chinasofti.com   @Date 2022/5/27 16:49
 */
public class DynamicProxyJdkTest {

    public static void main(String[] args) {
        AgentDynamicProxy agentDynamicProxy=new AgentDynamicProxy();
        agentDynamicProxy.setRent(new Host());

        Rent rent = (Rent) agentDynamicProxy.getProxy();
        System.out.println(rent.getClass());
        rent.rent(100);
    }
}
